#!/bin/bash

fd_install_source=/usr/local/software

home=/niuniu/tools/nexus

mkdir -pv ${home}

cd ${home}

rm -rf ${home}/*

tar -zxvf ${fd_install_source}/nexus-3.0.1-01-unix.tar.gz

fd_target_item=`ls -l |grep nexus* |awk '{print $NF}'`

echo ${fd_target_item}

./${fd_target_item}/bin/nexus restart
